import java.io.*;

public class InputStreamReaderDemo12 {
    public static void main(String[] args) throws IOException {
        // 转换流
//        FileInputStream fileInputStream = new FileInputStream("F:\\IdeaProjects\\MyJava230203\\day27\\dir\\3.txt");
//        BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);
//        InputStreamReader streamReader = new InputStreamReader(bufferedInputStream);


        InputStreamReader streamReader = new InputStreamReader(new BufferedInputStream(new FileInputStream("F:\\IdeaProjects\\MyJava230203\\day27\\dir\\3.txt")));
        char[] chars = new char[10];
        int read = streamReader.read(chars);
        System.out.println(new String(chars,0,read));

        streamReader.close();

    }
}
